<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>我的任务</title>
    <!-- 引入Mui -->
	<link rel="stylesheet" href="css/mui.min.css">
	<!-- 引入公共样式 -->
    <link rel="stylesheet" href="css/public.css">
    <style>
        #top_tab li{
            line-height: 3;
            color: #333;
        }
        #top_tab .mui-active{
            color: #007aff;
        }
        #slider h4{
            font-size: 14px;
        }
        #slider p{
            font-size: 12px;
        }
    </style>
</head>
<body>
    <!-- 头部 -->
	<header id="header" class="mui-bar mui-bar-nav">
<!--		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>-->
		<h1 class="mui-title">我的任务</h1>
	</header>
    <!-- 头部 结束 -->
    <div class="mui-content mui-scroll-wrapper" id="main">
        <div class="mui-scroll">
            <!-- 列表tab 开始 -->
            <div class="mui-slider" id="slider">
                <div class="mui-slider-indicator mui-segmented-control mui-segmented-control-inverted" id="top_tab">
                    <li class="mui-control-items mui-col-xs-4 mui-inline mui-active">已抢任务</li>
                    <li href="javascript:void(0)" class="mui-control-items mui-col-xs-4 mui-inline">未提交任务</li>
                    <li href="javascript:void(0)" class="mui-control-items mui-col-xs-4 mui-inline">已提交任务</li>
                </div>
                <div class="mui-slider-progress-bar mui-col-xs-4"></div> <!--选项卡滑动条-->
                <div class="mui-slider-group " id='tab_content'>
                    <div class="mui-slider-item mui-control-content mui-active">
                        <ul class="mui-table-view">
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="mui-slider-item mui-control-content">
                        <ul class="mui-table-view">
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称2</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称2</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称2</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称2</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                    <div class="mui-slider-item mui-control-content">
                        <ul class="mui-table-view">
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称3</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称3</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称3</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                            <li class="mui-table-view-cell mui-media">
                                <a href="tasks_detail.html">
                                    <img src="img/task.jpg" class="mui-media-object mui-pull-left">
                                    <div class="mui-media-body">
                                        <h4>任务名称3</h4>
                                        <p class="mui-ellipsis">任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介任务简介</p>
                                    </div>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <!-- 列表 tab 结束 -->
        </div>
    </div>
    <!-- 底部Tab 开始 -->
	<nav class="mui-bar mui-bar-tab super_link">
        <a class="mui-tab-item" href="index.html">
            <span class="mui-icon mui-icon-home"></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item mui-active" href="my_tasks.html">
            <span class="mui-icon mui-icon-email"></span>
            <span class="mui-tab-label">我的任务</span>
        </a>
        <a class="mui-tab-item" href="issue.html" >
            <span class="mui-icon mui-icon-paperplane"></span>
            <span class="mui-tab-label">发圈</span>
        </a>
        <a class="mui-tab-item" href="shop.html" >
            <span class="mui-icon mui-icon-chatbubble"></span>
            <span class="mui-tab-label">招商</span>
        </a>
        <a class="mui-tab-item" href="user.html" >
            <span class="mui-icon mui-icon-contact"></span>
            <span class="mui-tab-label">我的</span>
        </a>
    </nav>
	<!-- 底部Tba 结束 -->
    <script src="js/jquery.min.js"></script>
    <script src="js/mui.min.js"></script>
    <script src="js/doT.js"></script>
    <!-- 以上引入第三方插件 -->
    <script src="js/public.js"></script>
    <script>
        // 页面初始化
        mui.init();
        //初始化 mui 顶部 tab 效果
		mui('#slider').slider({
			interval:0 // slider间隔时间
		});
        //实现鼠标点击切换效果
        $('#top_tab li').click(function(){
            var gallery = mui('#slider');
            $('#top_tab li').removeClass('mui-active');
            $(this).addClass('mui-active');
            gallery.slider().gotoItem($(this).index())
        });
        // 动态添加 top_tab 的 active
        document.querySelector('#slider').addEventListener('slide', function(event) {
           var index = event.detail.slideNumber;
           $('#top_tab li').removeClass('mui-active');
           $('#top_tab li').eq(index).addClass('mui-active')
        });
    </script>
</body>
</html>